using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DTN.Core.Utilities;
using System.Data.SqlClient;
namespace com.dtn.deals
{
	public class tbl_City
	{
		private System.Int32 _ID;
		public System.Int32 ID
		{
			get { return this._ID; }		
			set { this._ID = value; }
		}
		private System.String _cityName;
		public System.String cityName
		{
			get { return this._cityName; }		
			set { this._cityName = value; }
		}
		private System.Int32 _cParent;
		public System.Int32 cParent
		{
			get { return this._cParent; }		
			set { this._cParent = value; }
		}
		private System.Int32 _isDel;
		public System.Int32 isDel
		{
			get { return this._isDel; }		
			set { this._isDel = value; }
		}
		private System.DateTime _cDate;
		public System.DateTime cDate
		{
			get { return this._cDate; }		
			set { this._cDate = value; }
		}

        private System.Int32 _areaID;

        public System.Int32 AreaID
        {
            get { return _areaID; }
            set { _areaID = value; }
        }
        private System.String _nameArea;

        public System.String NameArea
        {
            get { return _nameArea; }
            set { _nameArea = value; }
        }

        public tbl_City()
		{
		}
        public tbl_City(DataRow info)
		{
			_ID = ConvertUtility.ToInt32(info["ID"]);
			_cityName = ConvertUtility.ToString(info["cityName"]);
			_cParent = ConvertUtility.ToInt32(info["cParent"]);
			_isDel = ConvertUtility.ToInt32(info["isDel"]);
			_cDate = ConvertUtility.ToDateTime(info["cDate"]);
		}
        public tbl_City(DataRowView info)
        {
            _ID = ConvertUtility.ToInt32(info["ID"]);
            _cityName = ConvertUtility.ToString(info["cityName"]);
            _cParent = ConvertUtility.ToInt32(info["cParent"]);
            _isDel = ConvertUtility.ToInt32(info["isDel"]);
            _cDate = ConvertUtility.ToDateTime(info["cDate"]);
        }
        public tbl_City(SqlDataReader info)
        {
            _ID = ConvertUtility.ToInt32(info["ID"]);
            _cityName = ConvertUtility.ToString(info["cityName"]);
            _cParent = ConvertUtility.ToInt32(info["cParent"]);
            _isDel = ConvertUtility.ToInt32(info["isDel"]);
            _cDate = ConvertUtility.ToDateTime(info["cDate"]);
        }
	}
}
